package com.example.wangyuyuan.androidframe.data.api;

import com.example.wangyuyuan.androidframe.mvp.base.BaseResponse;
import com.example.wangyuyuan.androidframe.mvp.base.ErrorBean;
import com.example.wangyuyuan.androidframe.mvp.entitry.LoginUserinfo;

import java.util.HashMap;

import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by wangyuyuan on 2017/5/9.
 * 统一处理项目数据接口
 */

public interface Sercice {

    // 提交意见反馈内容
    @POST("pub/appUser/suggest")
    Observable<BaseResponse<ErrorBean>> commitSuggest(@QueryMap HashMap<String, String> params);

    //    登陆
    @POST("user/login")
    Observable<LoginUserinfo> login(@Body LoginUserinfo loginUserinfo);

}
